package com.travel.entity;

import org.springframework.stereotype.Component;
import java.util.Date;
@Component
public class TArticle   {
  private int articleId;
  private String articleTitle;
  private Date articleTime;
  private String articleContent;
  private String articleImage;
  private TUser user;

  public int getArticleId() {
    return articleId;
  }

  public void setArticleId(int articleId) {
    this.articleId = articleId;
  }

  public String getArticleTitle() {
    return articleTitle;
  }

  public void setArticleTitle(String articleTitle) {
    this.articleTitle = articleTitle;
  }

  public java.util.Date getArticleTime() {
    return articleTime;
  }

  public void setArticleTime(java.util.Date articleTime) {
    this.articleTime = articleTime;
  }

  public String getArticleContent() {
    return articleContent;
  }

  public void setArticleContent(String articleContent) {
    this.articleContent = articleContent;
  }

  public String getArticleImage() {
    return articleImage;
  }

  public void setArticleImage(String articleImage) {
    this.articleImage = articleImage;
  }

  public TUser getUser() {
    return user;
  }

  public void setUser(TUser user) {
    this.user = user;
  }

  public TArticle(int articleId, String articleTitle, Date articleTime, String articleContent, String articleImage, TUser user) {
    this.articleId = articleId;
    this.articleTitle = articleTitle;
    this.articleTime = articleTime;
    this.articleContent = articleContent;
    this.articleImage = articleImage;
    this.user = user;
  }

  public TArticle() {
  }

  @Override
  public String toString() {
    return "TArticle{" +
            "articleId=" + articleId +
            ", articleTitle='" + articleTitle + '\'' +
            ", articleTime=" + articleTime +
            ", articleContent='" + articleContent + '\'' +
            ", articleImage='" + articleImage + '\'' +
            ", user=" + user +
            '}';
  }
}
